<html>
<head><meta charset="utf-8"><title>setting r-a options in lsp-mode · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/setting.20r-a.20options.20in.20lsp-mode.html">setting r-a options in lsp-mode</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="221533901"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/setting%20r-a%20options%20in%20lsp-mode/near/221533901" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/setting.20r-a.20options.20in.20lsp-mode.html#221533901">(Jan 04 2021 at 15:07)</a>:</h4>
<p>How can I set arbitrary options in lsp-mode? I'd like to set: </p>
<div class="codehilite"><pre><span></span><code>    &quot;rust-analyzer.cargo.loadOutDirsFromCheck&quot;: true,
    &quot;rust-analyzer.procMacro.enable&quot;: true,
</code></pre></div>
<p>I've skimmed through lsp-rust but nothing jumped out at me.</p>



<a name="221535434"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/setting%20r-a%20options%20in%20lsp-mode/near/221535434" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/setting.20r-a.20options.20in.20lsp-mode.html#221535434">(Jan 04 2021 at 15:18)</a>:</h4>
<p>there are customization variables for most RA settings, e.g. <code>lsp-rust-analyzer-cargo-load-out-dirs-from-check</code> and <code>lsp-rust-analyzer-proc-macro-enable</code>. (there might be a few settings missing, which would need to be added in lsp-mode to be able to set them)</p>



<a name="221535756"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/setting%20r-a%20options%20in%20lsp-mode/near/221535756" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/setting.20r-a.20options.20in.20lsp-mode.html#221535756">(Jan 04 2021 at 15:21)</a>:</h4>
<p>Heh, I didn't expect there to be specific options already in the code.</p>



<a name="221535771"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/setting%20r-a%20options%20in%20lsp-mode/near/221535771" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jake Goulding <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/setting.20r-a.20options.20in.20lsp-mode.html#221535771">(Jan 04 2021 at 15:21)</a>:</h4>
<p>I was looking for a dump-all place</p>



<a name="221541642"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/setting%20r-a%20options%20in%20lsp-mode/near/221541642" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/setting.20r-a.20options.20in.20lsp-mode.html#221541642">(Jan 04 2021 at 16:02)</a>:</h4>
<p>I'd say it is an lsp-mode bug if it doesn't allow free-form options.  Also, <code>rust-analyzer --print-config-schema</code> now exists.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>